<template>
    <el-card>
        <el-table :data="tableData" style="width: 100%">
            <el-table-column prop="operationCode" label="操作编号" align="center" />
            <el-table-column prop="operationTime" label="操作时间" align="center" />
            <el-table-column prop="operatorName" label="操作人员" align="center" />
            <el-table-column prop="module" label="所属模块" align="center" />
            <el-table-column prop="target" label="操作对象" align="center" />
            <el-table-column prop="operationType" label="操作类型" align="center" />
            <el-table-column label="操作" align="center">
                <template v-slot="scope">
                    <el-button type="primary" size="small">查看</el-button>
                </template>
            </el-table-column>
        </el-table>
    </el-card>
</template>

<script setup lang="ts">
import { reactive, ref, onMounted } from 'vue'
import axios from 'axios';
import { ElMessage, ElMessageBox } from 'element-plus'

var tableData = ref([])
const GetList = () => {
    axios.get("http://localhost:5161/api/Logger/OperationLogList").then((res) => {
        tableData.value = res.data.data

    })
}
onMounted(() => {
    GetList()
})
</script>

<style scoped></style>